package com.lt.test.entity.DTO;


import com.lt.test.common.constant.HttpRequestConstant;

import java.io.Serializable;

/**
 * 返回json数据的DTO
 * @author zhengchuan
 *
 * @param <T>
 */
public class ResponseDTO implements Serializable{
	private static final long serialVersionUID = 1L;
	private String message="获取失败";
	private Boolean success=false;
	private String code= HttpRequestConstant.CLIENT_ERROR_CODE;
	private Object data;
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Boolean getSuccess() {
		return success;
	}
	public void setSuccess(Boolean success) {
		this.success = success;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "ResponseDTO [message=" + message + ", success=" + success + ", code=" + code + ", data=" + data + "]";
	}
	
	
	
}
